<template>
  <div class="content">
    <div>{{ name }}</div>
    <div>
      <van-button type="primary" @click="operation('点赞关注')">点我更改信息</van-button>
    </div>
    <div>
      <van-field v-model="num" label="数量" /><van-button type="primary" @click="getList">发送请求获取笑话</van-button>
    </div>
    <div style="width: 100%">
      <van-list>
        <van-cell v-for="item in list" :key="item" :title="item" />
      </van-list>
    </div>
    <van-button loading type="info" loading-text="加载中..." />
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
import loginAPI from "@/api/login";
export default {
  computed: {
    ...mapState("store_modular", ["name"]),
  },
  data() {
    return {
      num: 0,
      list: [],
    };
  },
  created() {
  },
  methods: {
    ...mapMutations("store_modular", ["operation"]),

    getList() {
      loginAPI.getLoginAPI({
        // code: "11",
        password: "admin123",
        username: "admin",
        // uuid: "1"
      }).then(res => {

      })
    },
  },
};
</script>

<style></style>